<!--
 * @Description  : 
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2022-04-21 13:49:22
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-05-16 13:30:12
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\partner\\channel-sales\\components\\list\\list.component.html
 * Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<page-header-wrapper [title]="'销售渠道管理'"></page-header-wrapper>

<nz-card>
  <!-- 搜索区 -->
  <sf
    #sf
    [ui]="ui"
    [schema]="schema"
    [mode]="'search'"
    (formSubmit)="st?.load(1)"
    (formReset)="resetSF()"
  ></sf>
</nz-card>

<nz-card>
  <button nz-button nzType="primary" style="margin-bottom: 24px"  acl  [acl-ability]="['channelSales-add']" (click)="add()"><i nz-icon nzType="plus"></i>新增</button>
  <!-- 数据列表 -->
  <st
    #st
    [data]="service.$api_getPage"
    [scroll]="{x: '1200px'}"
    [columns]="columns"
    [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
    [res]="{ reName: { list: 'data.records', total: 'data.total' } }"
    [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
    [loadingDelay]="500"
    [loading]="service.http.loading"
  >
  </st>
</nz-card>
